* configure.in: Don't set CC to "gcc -O" if the user specifies
authorJim Blandy <jimb@redhat.com>
Sat, 10 Apr 1993 08:30:27 +0000 (08:30 +0000)
committerJim Blandy <jimb@redhat.com>
Sat, 10 Apr 1993 08:30:27 +0000 (08:30 +0000)
`--with-gcc'.  Add -O to DEFS if GCC is set.

configure1.in

index d9e02003f63c5a8f53a2364a2aab1276a8550ada..d02306cc8c9ae3d479b1a02134764b62dded995e 100755 (executable)
@@ -781,14 +781,19 @@ compile='${CC-cc} $CFLAGS $DEFS conftest.c -o conftest $LIBS >/dev/null 2>&1'
 #### Choose a compiler.
 DEFS=-g
 case ${with_gcc} in
-  "yes" ) CC="gcc -O99" GCC=1 ;;
-  "no"  ) CC="cc"             ;;
+  "yes" ) CC="gcc" GCC=1 ;;
+  "no"  ) CC="cc"        ;;
   * )
 ]
 AC_PROG_CC
 [
 esac
 
+if [ "${GCC}" != "" ]; then
+  DEFS="${DEFS} -O"
+fi
+
+
 #### Some other nice autoconf tests.
 ]
 AC_CONST